package com.test.demo.utils;



import java.util.Date;

public class MessageUtil {

    //返回更新操作成功消息
    public static Message successs(String message){
        Message msg = new Message(20000, message,null,new Date().getTime());
        return msg;
    }

    //返回查询操作成功
    public static Message success(Object data){

        Message msg =
                new Message(20000, "success",data,new Date().getTime());
        return msg;
    }


}
